#ifndef __ENCODER_H
#define __ENCODER_H

#include "tim.h"

typedef struct _Encoder_Struct_
{
	int16_t encoderA;
	int16_t encoderB;
	int16_t encoderC;
	int16_t encoderD;
	
}Encoder_Struct;

extern Encoder_Struct Encoder_s;

void EncoderStart(TIM_HandleTypeDef *htim, uint32_t Channel);
int16_t Get_Encoder(TIM_HandleTypeDef *htim);


#endif
